package Array;


public class Matrix {
	int data;
	public Matrix(int input){
		this.data=input;
		
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int [][] array = new int [5][6];
		
		
		int [][] array2 ={{1,2,3,4},{5,6,7},{9,10}};
		
		int [][] array3=new int[5][7];
		
		
		int row=0;
		int col=0;
		for(row=0;row<array.length;row++){
			
			for(col = 0; col <array[row].length;col++){
				array[row][col]=row*col;
				System.out.println(array[row][col]);
			}
			
		int row2=0;
		int col2=0;
		for(row2=0;row2 < array2.length;row2++){
			
			for(col2=0;col2 <array2[row2].length;col2++){
				System.out.printf("%2d",array2[row2][col2]);
				
			}
			System.out.print("\n");
		}
		
		int row3=0;
		int col3=0;
		for(row3=0;row3<array2.length;row3++){
			for(col3=0;col3<array2[row3].length;col3++){
				System.out.print(array2[row3][col3]+" ");
				
			}
			System.out.print("\n");
		
		}
		}
	}
		
}
		

	


